import request from '@/utils/request'

export function listdict(query) {
  return request({
    url: '/equipment/dict/list',
    method: 'get',
    params: query
  })
}

export function createdict(data) {
  return request({
    url: '/equipment/dict/create',
    method: 'post',
    data
  })
}

export function readdict(data) {
  return request({
    url: '/equipment/dict/get/' + data.id,
    method: 'get'
  })
}

export function updatedict(data) {
  return request({
    url: '/equipment/dict/update',
    method: 'post',
    data
  })
}

export function deletedict(data) {
  return request({
    url: '/equipment/dict/delete/' + data.fdictno,
    method: 'delete'
  })
}
